<template>
  <view>
    <u-datetime-picker
      :show="show"
      v-model="value1"
      mode="datetime"
    ></u-datetime-picker>
    <u-button @click="show = true">打开</u-button>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        show: false,
        value1: Number(new Date()),
      };
    },
  };
</script>
